package com.appbee.article.server;

import javax.validation.constraints.NotNull;

import com.appbee.core.server.dao.access.DeleteAccess;
import com.appbee.core.server.dao.access.InsertAccess;
import com.appbee.core.server.dao.access.ReadAccess;
import com.appbee.core.server.dao.access.UpdateAccess;
import com.appbee.core.server.model.EditEntity;
import com.google.appengine.api.datastore.Text;
import com.google.code.twig.annotation.Index;
import com.google.code.twig.annotation.Type;

@ReadAccess
@UpdateAccess(roles = { "editor", "admin" })
@InsertAccess(roles = { "editor", "admin" })
@DeleteAccess(roles = "admin")
public class Article extends EditEntity
{
	@NotNull
	@Index
	private String strId;
	
	@Type(Text.class)
	private String content;

	public String getStrId()
	{
		return strId;
	}

	public void setStrId(String strId)
	{
		this.strId = strId;
	}

	public String getContent()
	{
		return content;
	}
	
	public void setContent(String content)
	{
		this.content = content;
	}
	
	
}
